/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"391F927B-91F6-4D38-97D1-35DAADA3172E"}
 */
function iraLiquidaciones(event) {
	forms.liquidaciones_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"9C74980A-973E-4481-8194-D3CCCE1F38C2"}
 */
function iraConsorcios(event) {
	forms.consorcios_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"8F4BA90F-029D-40B3-AEA9-A8EC0225BFDA"}
 */
function iraUnidades(event) {
	forms.unidades_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"D1DBE203-8AD5-4C55-8BE5-A966AF7CB717"}
 */
function iraEncargados(event) {
	forms.encargados_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"01BAD765-EA39-4EC6-922F-34EAD0EDFBBE"}
 */
function iraTareas(event) {
	forms.tareas_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"39D2D090-9EC3-4CBA-8EF5-64355841C39D"}
 */
function iraAdministraciones(event) {
	forms.administraciones_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"8045DEBC-8B34-4E71-B09A-C9717F433B8F"}
 */
function iraProveedores(event) {
	forms.proveedores_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"35278A56-3FE0-4239-9C29-7E05CFB2102D"}
 */
function iraPagadores(event) {
	forms.pagadores_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"44AB8272-DFBD-4908-A0AD-AED527C93544"}
 */
function iraTablas(event) {
	forms.tablas_cab_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"6C1F8C24-7023-4BDE-A61C-AC71E3618628"}
 */
function iraTipoPago(event) {
	forms.tipos_pago_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"0EAAE8E1-351D-4F32-A645-71B87F7DB55B"}
 */
function iraTipoProveedor(event) {
	forms.tipos_proveedor_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"33A94D6A-2E37-446B-9FD8-9941EDF2AFB1"}
 */
function iraPagos(event) {
	forms.pagos_tbl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"204E56AE-EB62-4BC1-A578-0504448273FE"}
 */
function iraIngresos(event) {
	forms.ingresos_extra_tbl.controller.show()
}

/**
 * Handle changed data.
 *
 * @param {Number} oldValue old value
 * @param {Number} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"47974E51-AEC0-4CA9-8135-967008DBF19C"}
 */
function onDataChangeAdministracion(oldValue, newValue, event) {
	databaseManager.removeTableFilterParam('consorcios','FILTRO_ADMINISTRACIONES')
	databaseManager.removeTableFilterParam('consorcios','FILTRO_CONSORCIOS')
	globals.cambiarAdministracion()
	return true
}

/**
 * Handle changed data.
 *
 * @param {Number} oldValue old value
 * @param {Number} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"380BB28F-3A2C-4D20-A476-F09B237BC845"}
 */
function onDataChangeConsorcio(oldValue, newValue, event) {
	databaseManager.removeTableFilterParam('consorcios','FILTRO_CONSORCIOS')
	databaseManager.addTableFilterParam('consorcios',null,'consorcio_id','=',globals.gConsorcio,'FILTRO_CONSORCIOS')
	return true
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"32B5FFBA-64E0-4770-9353-597E3A74D5E0"}
 */
function iraCtaCte(event) {
	forms.cta_cte_1.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E1F16C24-279C-4578-A483-0E8566C39574"}
 */
function iraDeudaInicial(event) {
	var $win = application.createWindow('ALTA_DEUDA',JSWindow.MODAL_DIALOG)
	$win.title = 'Alta de Deuda Inicial'
	forms.deuda_inicial.controller.show($win)
}
